<html>
<head><meta charset="utf-8"><title>raw_ref, raw_ref_mut macros · t-libs · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/219381-t-libs/index.html">t-libs</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/219381-t-libs/topic/raw_ref.2C.20raw_ref_mut.20macros.html">raw_ref, raw_ref_mut macros</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="199424476"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/219381-t-libs/topic/raw_ref%2C%20raw_ref_mut%20macros/near/199424476" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/219381-t-libs/topic/raw_ref.2C.20raw_ref_mut.20macros.html#199424476">(Jun 01 2020 at 21:13)</a>:</h4>
<p>Hey libs team, I wanted to call your attention to <a href="https://github.com/rust-lang/rust/pull/72279">https://github.com/rust-lang/rust/pull/72279</a> -- this PR is adding two macros (<code>raw_ref</code>, <code>raw_ref_mut</code>) which would serve as a way to borrow a raw pointer. This is a change from the older proposal which was to have a dedicated syntax of <code>&amp;raw</code>. <a href="https://github.com/rust-lang/rust/pull/72279#issuecomment-631142100">You can read more about the reasons for this change here</a>, but in today's meeting, we realized that this does then become kind of "libs surface area", so I wanted to make you all aware of the proposal. These macros would be unstable for now but I expect we would want to move towards stability.</p>



<a name="199426148"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/219381-t-libs/topic/raw_ref%2C%20raw_ref_mut%20macros/near/199426148" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/219381-t-libs/topic/raw_ref.2C.20raw_ref_mut.20macros.html#199426148">(Jun 01 2020 at 21:26)</a>:</h4>
<p>The eventual goal would be to have some sort of built-in syntax for this, but depending on the timeline for such syntax, it may make sense to stabilize the built-in-macro form as well and make them equivalent.</p>



<a name="199432784"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/219381-t-libs/topic/raw_ref%2C%20raw_ref_mut%20macros/near/199432784" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> BurntSushi <a href="https://rust-lang.github.io/zulip_archive/stream/219381-t-libs/topic/raw_ref.2C.20raw_ref_mut.20macros.html#199432784">(Jun 01 2020 at 22:45)</a>:</h4>
<p>SGTM</p>



<a name="199432807"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/219381-t-libs/topic/raw_ref%2C%20raw_ref_mut%20macros/near/199432807" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> BurntSushi <a href="https://rust-lang.github.io/zulip_archive/stream/219381-t-libs/topic/raw_ref.2C.20raw_ref_mut.20macros.html#199432807">(Jun 01 2020 at 22:45)</a>:</h4>
<p>thanks for the heads up!</p>



<a name="201473083"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/219381-t-libs/topic/raw_ref%2C%20raw_ref_mut%20macros/near/201473083" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/219381-t-libs/topic/raw_ref.2C.20raw_ref_mut.20macros.html#201473083">(Jun 20 2020 at 11:02)</a>:</h4>
<p>indeed I hope we can stabilize them ASAP :) not sure what timeframe would make sense though.</p>



<a name="201473087"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/219381-t-libs/topic/raw_ref%2C%20raw_ref_mut%20macros/near/201473087" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/219381-t-libs/topic/raw_ref.2C.20raw_ref_mut.20macros.html#201473087">(Jun 20 2020 at 11:02)</a>:</h4>
<p>this blocks finally resolving <a href="https://github.com/rust-lang/rust/issues/27060">https://github.com/rust-lang/rust/issues/27060</a></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>